// -*- C++ -*-
#ifndef SEGMENT_H
#define SEGMENT_H

#include <vector>

#include <sds/sdataview.h>

#include "cluster.h"
#include "pixel.h"

int ReadSegments(const sds::SDataView<Point>& src,
                 const sds::SDataView<unsigned char>& seg,
                 sds::SDataView<int>& ren, 
                 std::vector<Cluster>& inf);

int ReadSegments(const sds::SDataView<unsigned char>& seg, 
                 sds::SDataView<int>& ren);

void WriteSegments(const sds::SDataView<int>& ren,
                   sds::SDataView<unsigned char>& seg);

#endif
